package com.itfreer.special.index;

import java.io.Serializable;
import com.itfreer.form.api.entity.EntityBase;
import com.itfreer.form.api.reflect.DictionaryField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 定义指标实体
 */
@Entity(name = "special_index_data")
public class IndexDataEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 唯一值
	 */
	@Id
	@Column(name = "id", length = 50, nullable = true)
	private String id;
	
	
	/**
	 * 数据政区值
	 */
	@Column(name = "s_admin_id", length = 50, nullable = true)
	@DictionaryField(dictionaryName = "p_administrative", toFieldName = "adminname")
	private String adminid;
	
	
	/**
	 * 数据政区名称
	 */
	@Transient
	private String adminname;
	
	
	/**
	 * 所属指标ID
	 */
	@Column(name = "s_index_id", length = 50, nullable = true)
	private String indexid;
	
	
	/**
	 * 所属指标名称
	 */
	@Column(name = "s_index_name", length = 50, nullable = true)
	private String indexname;
	
	
	 /**
	 * 是否为最后级别
	 */
	@Column(name = "b_leaf", nullable = true)
	private boolean leaf;
	/**
	 * 级别
	 */
	@Column(name = "i_level", nullable = true)
	private Integer level;
	
	/**
	 * 数据月份
	 */
	@Column(name = "i_month", nullable = true)
	@DictionaryField(dictionaryName = "report_month", toFieldName = "monthName")
	private String month;
	
	@Transient
	private String monthName;
	
	/**
	 * 排序值
	 */
	@Column(name = "i_order", nullable = true)
	private Integer order;
	
	/**
	 * 上级ID值
	 */
	@Column(name = "s_pid", length = 50, nullable = true)
	private String pid;
	
	
	/**
	 * 单位
	 */
	@Column(name = "s_unit", length = 50, nullable = true)
	private String unit;
	
	
	 /**
	 * 是否有效
	 */
	@Column(name = "b_valid", nullable = true)
	private boolean valid;
	/**
	 * 数据值
	 */
	@Column(name = "d_value", nullable = true)
	private Double value;
	
	/**
	 * 数据年份
	 */
	@Column(name = "i_year", nullable = true)
	private Integer year;
	





	/**
	 * 唯一值
	 */
	public String getId() {
		return id;
	}

	/**
	 * 唯一值
	 */
	public void setId(String value) {
		this.id = value;
	}
	
	
	/**
	 * 数据政区值
	 */
	public String getAdminid() {
		return adminid;
	}

	/**
	 * 数据政区值
	 */
	public void setAdminid(String value) {
		this.adminid = value;
	}
	
	
	/**
	 * 数据政区名称
	 */
	@Transient
	public String getAdminname() {
		return adminname;
	}

	/**
	 * 数据政区名称
	 */
	public void setAdminname(String value) {
		this.adminname = value;
	}
	
	
	/**
	 * 所属指标ID
	 */
	public String getIndexid() {
		return indexid;
	}

	/**
	 * 所属指标ID
	 */
	public void setIndexid(String value) {
		this.indexid = value;
	}
	
	
	/**
	 * 所属指标名称
	 */
	public String getIndexname() {
		return indexname;
	}

	/**
	 * 所属指标名称
	 */
	public void setIndexname(String value) {
		this.indexname = value;
	}
	
	
	/**
	 * 是否为最后级别
	 */
	public boolean getLeaf() {
		return leaf;
	}

	/**
	 * 是否为最后级别
	 */
	public void setLeaf(boolean value) {
		this.leaf = value;
	}
	/**
	 * 级别
	 */
	public Integer getLevel() {
		return level;
	}

	/**
	 * 级别
	 */
	public void setLevel(Integer value) {
		this.level = value;
	}
	/**
	 * 数据月份
	 */
	public String getMonth() {
		return month;
	}

	/**
	 * 数据月份
	 */
	public void setMonth(String value) {
		this.month = value;
	}
	/**
	 * 排序值
	 */
	public Integer getOrder() {
		return order;
	}

	/**
	 * 排序值
	 */
	public void setOrder(Integer value) {
		this.order = value;
	}
	/**
	 * 上级ID值
	 */
	public String getPid() {
		return pid;
	}

	/**
	 * 上级ID值
	 */
	public void setPid(String value) {
		this.pid = value;
	}
	
	
	/**
	 * 单位
	 */
	public String getUnit() {
		return unit;
	}

	/**
	 * 单位
	 */
	public void setUnit(String value) {
		this.unit = value;
	}
	
	
	/**
	 * 是否有效
	 */
	public boolean getValid() {
		return valid;
	}

	/**
	 * 是否有效
	 */
	public void setValid(boolean value) {
		this.valid = value;
	}
	/**
	 * 数据值
	 */
	public Double getValue() {
		return value;
	}

	/**
	 * 数据值
	 */
	public void setValue(Double value) {
		this.value = value;
	}
	/**
	 * 数据年份
	 */
	public Integer getYear() {
		return year;
	}

	/**
	 * 数据年份
	 */
	public void setYear(Integer value) {
		this.year = value;
	}

	@Transient
	public String getMonthName() {
		return monthName;
	}

	public void setMonthName(String monthName) {
		this.monthName = monthName;
	}

	
	

}
